﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PCLawPrototype
{
    public partial class NewInvoice : Form
    {
        public NewInvoice()
        {
            InitializeComponent();
            lstClient.Clear();
        }

        public NewInvoice(bool isUpdate)
        {
            InitializeComponent();
            //this.Text = "Update Invoice Information [" + Common.Client1.ClientName + "]";
            //txtClientName.Text = Common.Client1.ClientName;
            //txtCountry.Text = "Vietnam";
            //txtCreatedDate.Text = DateTime.Now.ToShortDateString();
            //txtIntroLawyer.Text = Common.Client1.IntroLawyer.LawyerName;
            //txtAdvancePayment.Text = "0";
            //txtExpenseIncurred.Text = "290";
            //txtTotal.Text = "319";
            //txtVAT.Text = "29";
        }

        private void btnPUClient_Click(object sender, EventArgs e)
        {
            PUClientFrm puClientFrm = new PUClientFrm();
            puClientFrm.Show();
        }

        private void btnPUMatter_Click(object sender, EventArgs e)
        {
            PUMatterFrm puMatterFrm = new PUMatterFrm();
            puMatterFrm.Show();
        }

        private void btnAddToList_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Matter is added to list!");
        }

        private void btnInvoice_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Invoice saved?");
            this.Close();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnHelp_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Help will be shown!");
        }
    }
}
